<#macro content page, action,contentTypeId>
<#if pageFlag == '1'>
    <div class="page pageNews"></div>

    <form id="searchForm" action="${action}" method="get" class="form-inline">
        <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo!}"/>
        <#if contentTypeId??>
            <input name="contentTypeId" type="hidden" value="${contentTypeId!}"/>
        </#if>
    </form>

    <script>
        $(function () {
            $('.page').pagination({
                current: ${page.pageNo!},
                totalData: ${page.count!},
                showData: ${page.pageSize!},
                homePage: '首页',
                endPage: '末页',
                prevContent: '上页',
                nextContent: '下页',
                keepShowPN: true,
                coping: true,
                callback: function (api) {
                    $("#pageNo").val(api.getCurrent());
                    $("#searchForm").submit();
                }
            });
        })
    </script>
</#if>

</#macro>
